package ibm.websphere.monitor.domain;

import ibm.websphere.monitor.bean.UserInfo;
import ibm.websphere.monitor.common.HibernateDaoHelper;
import ibm.websphere.monitor.exception.MonitorDaoException;
import org.springframework.stereotype.Repository;
/**
 * <pre>
 *	@Description //
 * </pre>
 * @copyright www.timotai.net
 * @author 这家伙真懒
 * @date 2016-1-12
 **/
@Repository
public class UserDomain extends HibernateDaoHelper<UserInfo> {

	
	public UserInfo finaUserByUserName(String userName){
		return findOneByProperty("userName", userName);
	}
	
	@SuppressWarnings("unchecked")
	public UserInfo finaUserByUserId(String userId) throws MonitorDaoException {
		return findOneByProperty("userId", userId);
	}


}
